<script type="text/javascript" src="/js/calendar/WdatePicker.js"></script>
<h2>管理员操作&gt; 列表</h2>
<form action="<?= AdminController::_makeURL('admin','operate','list_detail') ?>" method="post">
<table class="list" cellpadding="0" cellspacing="0" with="100%">
<tr>
	<td>用户uid</td>
    <td><input type="text" name="uid" value="<?=_('uid')?>" /></td>
</tr>
<tr>
	<td> 资源类型</td>
    <td><?=admin_util_operate::getOperSelect(2) ?></td>
</tr>
<tr>
	<td>操作类型</td>
    <td><?=admin_util_operate::getOperSelect(1) ?></td>
</tr>
<tr>
	<td> 资源id</td>
    <td><input type="text" name="res_id" value="<?=_('res_id')?>" /></td>
</tr>
<tr>
	<td>按时间搜索</td>
	<td><span>开始时间：</span>
<input id="start" name="start" class="Wdate" type="text" onFocus="var end=$dp.$('end');WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){end.focus();},maxDate:'#F{$dp.$D(\'end\')}'})" value="<?=_('start')?>" style="width:150px"/>
<span>结束时间：</span>
<input type="text" id="end" name="end" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'start\')}'});" class="Wdate" style="width:150px" value="<?=_('end')?>"/></td>
</tr>
<tr nowrap="nowrap">
	<td colspan="2" align="center"><input type="submit" value="开始搜索"  /></td>
</tr>
</table>
</form>
<table class="list" cellpadding="0" cellspacing="0" with="100%">
	<thead align="center">
		<td nowrap></td>
		<td nowrap>管理员id</td>
		<td nowrap>管理员</td>
		<td nowrap>操作</td>
		<td nowrap>资源id</td>
		<td nowrap>资源类型</td>
		<td nowrap>操作时间</td>
	</thead>
	<?php $i=1;?>
	<? foreach($this->ret['data']['ret']['ROWS'] as $row):?>
	<tr>
		<td><?php echo $i;?></td>
		<td>
			<a href="<?= AdminController::_makeURL('admin','priv','set_user_form',array('uid'=>$row['uid'])) ?>" target="_blank" ><?= $row['uid'] ?></a>
		</td>
		<td nowrap>
			<?=$row['username']?>
		</td>
		<td>
			<a href="<?= AdminController::_makeURL('admin','operate','list_detail',array('opr'=>$row['oid'])) ?>" ><?= $_SERVER['const']['oper_type'][$row['oid']]['name']?></a>
		</td>
		<td>
			<?= $row['res_id']?>
		</td>
		
		<td nowrap>
			<a href="<?= AdminController::_makeURL('admin','operate','list_detail',array('rtype'=>$row['res_type'])) ?>"  ><?=$_SERVER['const']['res_type'][$row['res_type']]['name']?></a>
		</td>
		<td>
			<?=$row['oper_time']?>
		</td>
	</tr>
	<?php ++$i;?>
	<? endforeach;?>
</table>
<table class="list" cellpadding="0" cellspacing="0">
	<thead>
    	<td align="right" nowrap>
			<?=$this->ret['data']['pages']?>
        </td>
    </thead>
</table>
